﻿@model HR_ASP.ViewModel.WyszukPracowViewModel
@{
    ViewBag.Title = "Index";
    AjaxOptions ajaxOpts = new AjaxOptions
    {
        UpdateTargetId = "tabledata"
    };
}

@using (Ajax.BeginForm("PracowDane",Model, ajaxOpts))
{
    <div class="MenuSearch">
    @Html.LabelFor(m => m.Imie)
    @Html.TextBoxFor(m => m.Imie)
    @Html.LabelFor(m => m.Nazwisko)
    @Html.TextBoxFor(m => m.Nazwisko)
    @Html.LabelFor(m => m.Pesel)
    @Html.TextBoxFor(m => m.Pesel) 
    <input type="submit" value="Szukaj" />
    </div>
   
    
    @Html.ActionLink("Dodaj nowego pracownika", "Create", "Pracownik");
    <div id="tabledata">
        @Html.Action("PracowDane", new { Model })
    </div>
}
